package com.example.consumer;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author weiZhiLin
 * @version 1.0
 * @date 2021/6/22 19:25
 */
@RestController
public class FeinController {
    @Qualifier("myApi")
    @Autowired
    FeinApi api;

    @GetMapping("/getPort")
    public String getPort() {
        return api.getPort();
    }

}
